package club.kunlingou.dsc.hello.controller;

import java.util.Date;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONObject;

@Controller
@RequestMapping("hello")
public class HelloController {
	
	@RequestMapping("now")
	@ResponseBody
	public JSONObject now() {
		JSONObject jsonObject = new JSONObject();
		Date date = new Date();
		jsonObject.put("now", date);
		return jsonObject;
	}
}
